<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>自主招生报名</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, user-scalable=no">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta name="apple-mobile-web-app-status-bar-style" content="default"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <meta name="format-detection" content="telephone=no"/>
    <link href="${s.base}/mobile/css/weui.min.css" rel="stylesheet" />
    <link href="${s.base}/mobile/css/jquery-weui.css" rel="stylesheet"/>
    <link href="${s.base}/mobile/css/jquery-weui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="${s.base}/mobile/css/enrollment/zzzs.css"/>
</head>
<body style="background:#f1f1f1;">
    <div class="main-content75" >
        <div class="data-entry-ctn">
            <div class="data-entry-title data-entry-title-bg">初中各方面获奖情况</div>
            <textarea id="award-info" class="div-textarea-line" placeholder="请输入">${awardInfo}</textarea>
        </div>
        <div class="zzzs-btn-ctn mart40">
            <button type="button" onclick="prePage()">上一步</button>
            <button type="button" onclick="submit()">提交</button>
            <button type="button" onclick="toIndex()">返回</button>
        </div>
    </div>
</body>
<script type="text/javascript" src="${s.base}/mobile/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/jquery-weui.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/fontSize.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/common.js"></script>

<script>
    function submit() {
        var awardInfo = $("#award-info").val();

        $.fn.doPost('/phone/enrollment/submit', {awardInfo:awardInfo,releaseId:'${releaseId}'}, function (result) {
            if (result.code === 0) {
                $.toast('提交成功', "text");
                toIndex();
            } else {
                $.toast('提交失败,请重试', "text");
            }
        });
    }

    function prePage() {
        window.location.href = '/phone/enrollment/infoGrade?releaseId=${releaseId}&token=${token}&applyId=${applyId}';
    }

    function toIndex() {
        window.location.href = '/phone/enrollment/enrollmentEdit?id=${releaseId}&token=${token}&applyId=${applyId}';
    }
</script>
</html>
